package com.lujieni.threadpool.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "snowflake")
public class SnowflakeProperties {

    /**
     * 机器编号
     */
    private int workId;
    /**
     * 数据中心编号
     */
    private int dataCenterId;

    public int getWorkId() {
        return workId;
    }

    public void setWorkId(int workId) {
        this.workId = workId;
    }

    public int getDataCenterId() {
        return dataCenterId;
    }

    public void setDataCenterId(int dataCenterId) {
        this.dataCenterId = dataCenterId;
    }


}
